package com.io.classesforutility;

import java.io.Serializable;

public class Dog implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8163476797817206201L;
	private static final String DEFAULT_NAME = "Sharo";
	private static final String DEFAULT_COLOR = "black";

	private String name;
	private String color;

	Dog() {
		this.name = DEFAULT_NAME;
		this.color = DEFAULT_COLOR;
	}

	Dog(String name, String color) {
		this();
		this.setName(name);
		this.setColor(color);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		if (name != null && (!name.equals(""))){
			this.name = name;
		}
	}

	public String getColor() {
		return color;
	}

	public void setColor(String color) {
		if (color != null && (!color.equals(""))){
			this.color = color;
		}
	}

}
